package com.eastjet.maintenance.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * 设备类型
 *
 * @TableName device_type
 */
@TableName(value = "device_type")
@Data
public class DeviceType implements Serializable {

    @TableField(exist = false)
    private  DeviceMel deviceMel;
    /**
     * 类型编号
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 父级类型编号
     */
    @TableField(value = "fu")
    private Integer fu;
    /**
     * 排序
     */
    @TableField(value = "xu")
    private Integer xu;
    /**
     * 设备类型名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 设备编码
     */
    @TableField(value = "encode")
    private String encode;

    /**
     * 状态(1.启动:2.停用)
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建时间
     */
    private Date creationTime;

    /**
     * 更新人
     */
    private String updater;

    /**
     * 更新时间
     */
    private Date updated;

    /**
     * 逻辑删除
     */
    private Integer tombstone;



    @Override
    public String toString() {
        return "DeviceType{" +
                "deviceMel=" + deviceMel +
                ", id=" + id +
                ", fu=" + fu +
                ", xu=" + xu +
                ", name='" + name + '\'' +
                ", encode='" + encode + '\'' +
                ", state=" + state +
                ", remark='" + remark + '\'' +
                ", createdBy='" + createdBy + '\'' +
                ", creationTime=" + creationTime +
                ", updater='" + updater + '\'' +
                ", updated=" + updated +
                ", tombstone=" + tombstone +
                '}';
    }
}